//
//  MineMediaPromoteViewController.m
//  YongChuanTradingArea
//
//  Created by Vivian on 2017/9/18.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "MineMediaPromoteViewController.h"

@interface MineMediaPromoteViewController ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imgView;

@end

@implementation MineMediaPromoteViewController

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.titleLabel.text = [LBUserManage defaultManager].userModel.MEMBERNAME;
    self.navigationController.navigationBar.translucent = YES;
    [self.navigationController.navigationBar lb_setBackgroundColor:[UIColor colorWithHex:0xFF5063 alpha:0]];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [self.navigationController.navigationBar lb_reset];
    self.navigationController.navigationBar.translucent = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"收款码";
    self.style = ViewControllerStyleLight;
    for (UserModelImgList *model in [LBUserManage defaultManager].userModel.ImgList) {
        if ([model.imgtype isEqualToString:@"PAYCODE"]) {
            [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:PLACE_HOLDER];
        }
    }
    // Do any additional setup after loading the view from its nib.
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    
    return UIStatusBarStyleLightContent;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
